﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WinnerCMS.BLL;
using WinnerCMS.Model;
using WinnerCMS.Model.Attribute;

#endregion

namespace WinnerCMS.WebUI.Admin.Admin
{
    [Access]
    public partial class UserRights : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Title = "用户权限";

            var rightIds =
                new UserManage().GetInfo(Request.QueryString["UserName"], true).Rights.Select(x => x.Id).ToArray();
            Master.strOperation = string.Join(",", rightIds);
        }
    }
}